#include "Basic.hlsli"

#include "VertexHelper.hlsli"
VertexOut VS(VertexIn vIn)
{
    VertexOut vOut;
    vOut.posH = mul(float4(vIn.posL, 1.0f), gWorld); 
    vOut.posW = vOut.posH.xyz;
    
    vOut.norW = mul(float4(vIn.norL,0.0f),gInvTransWorld).xyz;    
    vOut.tanW = mul(vIn.tanL, gWorld);                  
    
    vOut.posH = mul(vOut.posH, g_View);               
    vOut.posH = mul(vOut.posH, g_Proj);               
    vOut.uv = vIn.uv;
    return vOut;
}
